﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EasyStep.Attributes;
using EasyStep.TestExecution.Data;
using EasyStep.TestExecution.Interfaces;

using OpenQA.Selenium;


namespace EasyStep.TestActions.Actions.Alert
{
    [TestAction(typeof(Alert), RequireLocator = false, Name = "ConfirmAlert", RequireData = false)]
    class ConfirmAlert : ITestAction<IWebDriver>
    {
        public void Execute(IWebDriver browser, TestStepResult data, IExecuteDataContext context)
        {
            browser.SwitchTo().Alert().Accept();
        }
    }
}